﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Tool.HostPluginBase
{
    /// <summary>
    /// 接收到的Websocket消息
    /// </summary>
    public class ReceiveWebsocketMessage
    {
        /// <summary>
        /// 插件身份认证
        /// </summary>
        public const int AUTH = 1;

        /// <summary>
        /// 数据
        /// </summary>
        public const int DATA = 2;

        /// <summary>
        /// 订阅日志
        /// </summary>
        public const int SUB_LOG = 3;



        /// <summary>
        /// 插件标识
        /// </summary>
        public string PluginID { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public int DataType { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public string Data { get; set; }


        /// <summary>
        /// 构造函数
        /// </summary>
        public ReceiveWebsocketMessage()
        {

        }
    }
}
